// 需要缓存的数据key
let cache = ["userInfo", "token", "options"];

// 必须使用函数来设置初始值，否则会导致每个组件都共享同一个状态
export const useCounter = () => useState("counter", () => 0);

// 创建一个pageHeader的数据
export const useUserInfo = () => useState("userInfo", () => ({}));
export const usePageHeader = () => useState("pageHeader", () => []);
export const useToken = () => useState("token", () => "");
export const useOptions = () => useState("options", () => ({}));

